<?php 
if (isset($com2))
{
echo "Tag <a href='/urp/tags/view/".$com2."'>".$com2."</a> (ID: ".$com1.") has the following sub tags: <br/>";
foreach ($com as $val)
    echo "<li>".$val."</li>";
echo '<br/>';
}
echo $this->Form->create('Tag', array('action'=>'setparent'));
if (!isset($default))
    $default="";
if (!isset($setparent))
    $setparent="";
echo $this->Form->input('Parent.tag', array('type'=>'text', 'label'=>'Parent', 'default'=>$default));
echo $this->Form->input('Tag.tag', array('type'=>'text', 'default'=>$setparent));
echo $this->Form->end('Set Parent & Tag');


?>